/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package STUDENT.NGUYENSANG.OOPs.QuanLiThuVien;

/**
 *
 * @author NSPDL
 */
public class BanDoc implements UserFile{
    private int MaID;
    private String Ten;
    private String DiaChi;
    private String SoDT;
    private String LoaiBD;
    public BanDoc(int MaID, String Ten, String DiaChi, String SoDT, String LoaiBD) {
        this.MaID = MaID;
        this.Ten = Ten;
        this.DiaChi = DiaChi;
        this.SoDT = SoDT;
        this.LoaiBD = LoaiBD;
    }

    public int getMaID() {
        return MaID;
    }

    public void setMaID(int MaID) {
        this.MaID = MaID;
    }

    public String getTen() {
        return Ten;
    }

    public void setTen(String Ten) {
        this.Ten = Ten;
    }

    public String getDiaChi() {
        return DiaChi;
    }

    public void setDiaChi(String DiaChi) {
        this.DiaChi = DiaChi;
    }

    public String getSoDT() {
        return SoDT;
    }

    public void setSoDT(String SoDT) {
        this.SoDT = SoDT;
    }

    public String getLoaiBD() {
        return LoaiBD;
    }

    public void setLoaiBD(String LoaiBD) {
        this.LoaiBD = LoaiBD;
    }
    
    /**
     * @param args the command line arguments
     */
  
    @Override
    public Object[] toObject() {
     return new Object[]{MaID,Ten,DiaChi,SoDT,LoaiBD};
    }
    @Override
    public String toString()
    {
        return (""+this.getMaID()+" "+this.getTen()+" "+this.getDiaChi()+" "+this.SoDT+" "+this.getLoaiBD());
    }
}
